package model

import "gorm.io/gorm"

type Logo struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"`
}

func (l *Logo) FindByLogoName(db *gorm.DB, name string) error {
	return db.Debug().Where("name=?", name).FirstOrCreate(&l).Error
}
